#include <iostream>

using namespace std;

int main()
{
    int k;
    cin >> k;
    int n = 1;
    double s = n;
    while (!(s>k))
    {
        ++n;
        s += 1.0/n;
    }
    cout << n;
    return 0;
}
